﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.clientpackets
{
    public class C_ExitGhost : ClientBasePacket
    {
        private static Logger _log = Logger.getLogger( typeof( C_ExitGhost ).FullName );

        private const String _C_EXIT_GHOST = "[C] C_ExitGhost";

        // 移動
        public C_ExitGhost( byte[] decrypt, ClientThread client )
            : base( decrypt )
        {

            L1PcInstance pc = client.getActiveChar();

            if ( !pc.isGhost() )
            {
                return;
            }

            pc.makeReadyEndGhost();
        }

        override
        public String getType()
        {
            return _C_EXIT_GHOST;
        }
    }
}